
package com.joolun.cloud.mall.api.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joolun.cloud.common.core.constant.SecurityConstants;
import com.joolun.cloud.common.core.util.R;
import com.joolun.cloud.upms.common.feign.FeignUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 客服接口
 *
 * @author www.joolun.com
 * @date 2020-03-17 11:55:32
 */
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/customerservice")
@Api(value = "customerservice", tags = "客服接口API")
public class CustomerServiceController {

    private final FeignUserService feignUserService;

    /**
     * 客服列表
     * @return
     */
    @ApiOperation(value = "分页列表")
    @GetMapping("/list/{shopId}")
    public R getPage(@PathVariable("shopId") String shopId) {
		return feignUserService.getInsideUserList(shopId, SecurityConstants.FROM_IN);
    }

}
